package com.edu.neusoft.furniture_sale.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.edu.neusoft.furniture_sale.dto.ProductsDto;
import com.edu.neusoft.furniture_sale.entity.Products;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName: ProductsMapper
 * Package: com.edu.neusoft.furniture_sale.mapper
 * Description:
 *
 * @Author 麻了跺跺脚
 * @Create 2024/12/18 17:09
 * @Version 1.0
 */
@Mapper
public interface ProductsMapper extends BaseMapper<Products> {

    List<Products> selectByPage(@Param("pageNum") int pageNum, @Param("pageSize") int pageSize);

    ProductsDto selectByProductId(@Param("productId") int productId);

}
